cd /root/run/go/code/common

git pull origin main

cd /root/run/go/code/api_admin_server

git pull origin main

export GOPRIVATE="jihe.common"
export GOPROXY=https://goproxy.cn

GO111MODULE=on go build -o api_admin_server cmd/main.go

ssh prd1 "supervisorctl stop api_admin_server"

scp api_admin_server configs/production.yml prd1:/root/run/api_admin_server

ssh prd1 "supervisorctl start api_admin_server"

#ssh prd2 "supervisorctl stop api_admin_server"
#
#scp api_admin_server configs/production.yml prd2:/root/run/api_admin_server
#
#ssh prd2 "supervisorctl start api_admin_server"
#
#ssh prd3 "supervisorctl stop api_admin_server"
#
#scp api_admin_server configs/production.yml prd3:/root/run/api_admin_server
#
#ssh prd3 "supervisorctl start api_admin_server"